#ifndef ATTRACTION_H
#define ATTRACTION_H
#include"search_error.h"
#include "path.h"
#include <QMetaType>
#include <QMainWindow>

namespace Ui {
class attraction;
}

class attraction : public QMainWindow
{
    Q_OBJECT

public:
    explicit attraction(QWidget *parent = nullptr);
    ~attraction();
    void path(mgraph c,int m,int n,int k);             //查找两景点间的路径
    void  allpath(mgraph c,int start,int end);         //查找两景点间的所有路径
    void shortestpath(mgraph c,int start,int end);    //输出两景点间最短距离
    void floyd(mgraph c);                              //弗洛伊德算法最短路径

private slots:
    void on_alterButton_clicked();
    void on_shortestButton_clicked();

private:
    Ui::attraction *ui;
    search_error*ni;
};
#endif // ATTRACTION_H
